package com.lizemin.listener.controller;

import com.lizemin.listener.common.RespBean;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationEventPublisher;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author lzm
 * @date 2025/4/12 15:24
 * @description
 */
@RestController
@Slf4j
public class UserController {

    @GetMapping("/register/v1")
    public RespBean register(String username) {
        log.info("用户{}注册成功", username);
        log.info("开始给用户{}发放新人优惠券", username);
        log.info("开始给用户{}发送注册成功的短信", username);
        log.info("开始给用户{}发送注册成功的邮件", username);
        return RespBean.success();
    }

}
